/*
 * Description: RFQ
 * Company: 联宝（合肥）电子科技有限公司
 * Author: Chengming.Li
 * Date: 2020/11/25 09:35
 */

import { httpPost } from '../../utils/axios-utils'
// 列表数据
export function RfqInfoPageList(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info/pageList', obj, authConfig)
}
// 详细数据
export function RfqDetailInfo(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info_detail/list', obj, authConfig)
}

// 改变check状态
export function changeCheckState(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info/edit', obj, authConfig)
}
// 发送
export function RfqSendToDP(obj, authConfig) {
  return httpPost('/smart-cost/dp/sendRfq', obj, authConfig)
}

// Rfq 分配

export function RfqAssignCommit(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info/assignCommit', obj, authConfig)
}

export function RfqAssignSaveList(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info/assignSaveList', obj, authConfig)
}

export function RfqAssignSaveSingle(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info/assignSaveSingle', obj, authConfig)
}

export function RfqPageListToAssign(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info/pageListToAssign', obj, authConfig)
}
// 无层级关系详细数据
export function RfqDetailFloorInfo(obj, authConfig) {
  return httpPost('/smart-cost/rfq/info_detail/isFloorList', obj, authConfig)
}

// 估价模块
export function rfqPageListUnFinish(obj, authConfig) {
  return httpPost('/smart-cost/rfq/cost/pageListUnFinish', obj, authConfig)
}

export function rfqClaim(obj, authConfig) {
  return httpPost('/smart-cost/rfq/cost/claim', obj, authConfig)
}

export function rfqClaimBatch(obj, authConfig) {
  return httpPost('/smart-cost/rfq/cost/claimBatch', obj, authConfig)
}

export function rfqCostCommit(obj, authConfig) {
  return httpPost('/smart-cost/rfq/cost/costCommit', obj, authConfig)
}

export function rfqCostForward(obj, authConfig) {
  return httpPost('/smart-cost/rfq/cost/costForward', obj, authConfig)
}

// Total
export function rfqTotalPageList(obj, authConfig) {
  return httpPost('/smart-cost/rfq/total/pageList', obj, authConfig)
}

export function rfqTotalQuery(obj, authConfig) {
  return httpPost('/smart-cost/rfq/total/query', obj, authConfig)
}
// 下载
export function fileExportRfqData(obj, authConfig) {
  return httpPost('/smart-cost/rfq/file_export/exportRfqData', obj, authConfig)
}
